package protocol

//Protocol 协议接口
type Protocol interface {
	Marshal(body interface{}) ([]byte, error)

	Unmarshal([]byte) (interface{}, error)
}

//Token 每个包必须带的基础字段
type Token struct {
	Authorization string
	CharacterID   int64 //登录的人物ID
}

//Heart 心跳包
type Heart struct {
	Token
}
